#!/bin/bash
# install thinkphp6
# Tue Jun 15 18:45:31 CST 2021


# install composer
#
# curl -sS https://getcomposer.org/installer | php
# mv composer.phar /usr/local/bin/composer


# install tp6
composer create-project topthink/think ${1}
cd ${1}

composer require topthink/think-multi-app
composer require topthink/think-view

# mv
mv tp6/* tp6/.example.env tp6/.gitignore tp6/.travis.yml .

# rm
rm -rf tp6
rm -rf view app/controller public/static/.gitignore

echo '' > .gitignore
